package com.neusoft.controller.check;

import com.neusoft.bean.PageBean;
import com.neusoft.service.CheckRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin
@RequestMapping("/check")
public class CheckRequestController {
    @Autowired
    CheckRequestService checkRequestService;
    @GetMapping("/getFinishCheck")
    public Integer getFinishCheck(){
        Integer finishCheck = checkRequestService.getFinishCheck();
        return finishCheck;
    }
    @GetMapping("/getWaitRegisterIdList")
    public List<Integer> getWaitRegisterIdList(){
        List<Integer> registerIdList = checkRequestService.getWaitRegisterIdList();
        return registerIdList;
    }
    @PutMapping("/updateCheckRequestTable")
    public void updateCheckRequestTable(Integer checkId, Integer employeeId){
        checkRequestService.updateCheckRequestTable(checkId,employeeId);
    }


}
